package net.bblot.lottery.util;

import android.util.Log;

/**
 * Created by feng on 2017/8/11.
 */

public class Logger {

    private static boolean isDebug = false;

    public static void setIsDebug(boolean isDebug) {
        Logger.isDebug = isDebug;
    }

    public static void v(String tag, String message) {
        if (isDebug) {
            Log.v(tag, message);
        }
    }

    public static void v(String tag, String message, Throwable throwable) {
        if (isDebug) {
            Log.v(tag, message, throwable);
        }
    }

    public static void d(String tag, String message) {
        if (isDebug) {
            Log.d(tag, message);
        }
    }

    public static void d(String tag, String message, Throwable throwable) {
        if (isDebug) {
            Log.d(tag, message, throwable);
        }
    }

    public static void i(String tag, String message) {
        if (isDebug) {
            Log.i(tag, message);
        }
    }

    public static void i(String tag, String message, Throwable throwable) {
        if (isDebug) {
            Log.i(tag, message, throwable);
        }
    }

    public static void w(String tag, String message) {
        if (isDebug) {
            Log.w(tag, message);
        }
    }

    public static void w(String tag, Throwable throwable) {
        if (isDebug) {
            Log.w(tag, throwable);
        }
    }

    public static void w(String tag, String message, Throwable throwable) {
        if (isDebug) {
            Log.w(tag, message, throwable);
        }
    }

    public static void e(String tag, String message) {
        if (isDebug) {
            Log.e(tag, message);
        }
    }

    public static void e(String tag, String message, Throwable throwable) {
        if (isDebug) {
            Log.e(tag, message, throwable);
        }
    }

}
